<template>
  <div class="container-cart">
    <div class="cartList">
      <div v-for="(temp,index) in 5" :key="index" class="moreList">
        <div>
          <van-checkbox v-model="checked" checked-color="#D63A54" />
        </div>
        <div class="pic">
          <img src="@/assets/pic2.png" alt>
        </div>
        <div class="size">
          <div class="name">庆阳红富士1.5kg</div>
          <div class="weight">已选：1.5kg，礼盒装</div>
          <div class="stepper"><van-stepper v-model="value" /></div>
        </div>
        <div class="amont">
          <div class="total">￥39.9</div>
          <div class="num"><img src="@/assets/delete.png" alt="" class="" @click="del"></div>
        </div>
      </div>
    </div>

  </div>
</template>

<script>
import { Toast } from 'vant'
export default {
  data() {
    return {
      checked: true,
      value: 1
    }
  },
  methods: {
    del() {
      Toast('已删除')
    }
  }
}
</script>

<style lang="less">
.container-cart {
  width: 100%;
  // height: 90vh;
  padding: 1vw 0;
  margin-bottom: 5px;
  // background: #f5f6f8;
  box-sizing: border-box;
  .cartList{
    margin-bottom: 5px;
     background: #f5f6f8;
      .moreList {
    padding: 10px 0;
    background: #fff;
    display: flex;
    justify-content: space-around;
    .pic {
        width: 80px;
        height: 80px;
        overflow: hidden;
        img {
          width: 100%;
        }
      }
    .weight{
          color: #999999;
          font-size: 14px;
          padding-top: 5px;
      }
      .num{
          text-align: right;
          padding-top: 30px;
      }
      .stepper{
        padding: 5px 0;
      }
  }
  }
}
</style>
